package cn.fzkj.ailangchain4j.ai;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import reactor.core.publisher.Flux;

import java.util.List;

/**
 * @ description
 * @ author yaya
 * @ since 2025/10/31
 */
public interface CodeHelperService {

    @SystemMessage(fromResource = "system-prompt.txt")
    String chat(@MemoryId int memoryId, @UserMessage String message);

    @SystemMessage(fromResource = "system-prompt.txt")
    Report chatForReport(String message);

    @SystemMessage(fromResource = "system-prompt.txt")
    Flux<String> chatStream(@MemoryId int memoryId, @UserMessage String userMessage);

    record Report(String name, List<String> reportList){}
}
